var a = [];
for(var i = 0; i < 10; i++) [
  a[i] = function() {
    console.log(i)
  }
]
a[6]();

// var tmp = 123;
// if(true) {
//   console.log(tmp);
//   let tmp;
// }

let arr = [12, 34, 32, 98, 2, 5, 20];

const min = Math.min(...arr);
console.log(min)

var a = 10;
var obj = {
  a: 20,
  fn() {
    setTimeout(() => {
      console.log(this.a)
    })
  },
  fn1() {
    return (function() {
      global.bb = 1222;
      console.log('fn1',this.a)
    })()
  }
}
obj.fn()
obj.fn1()
